import request from '@/utils/request'

// 查询处方详情列表
export function listPrescriptionDetailed(query) {
  return request({
    url: '/system/PrescriptionDetailed/list',
    method: 'get',
    params: query
  })
}

// 查询处方详情详细
export function getPrescriptionDetailed(Id) {
  return request({
    url: '/system/PrescriptionDetailed/' + Id,
    method: 'get'
  })
}

// 新增处方详情
export function addPrescriptionDetailed(data) {
  return request({
    url: '/system/PrescriptionDetailed',
    method: 'post',
    data: data
  })
}

// 修改处方详情
export function updatePrescriptionDetailed(data) {
  return request({
    url: '/system/PrescriptionDetailed',
    method: 'put',
    data: data
  })
}

// 删除处方详情
export function delPrescriptionDetailed(Id) {
  return request({
    url: '/system/PrescriptionDetailed/' + Id,
    method: 'delete'
  })
}
